package com.gsafety.wellsfort.dao.course;

import com.gsafety.wellsfort.domain.model.course.WorkAnswerRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkAnswerRecordDAO {
    int deleteByPrimaryKey(Integer id);

    int deleteByStuWorkId(Integer stuWorkId);

    int insert(WorkAnswerRecord record);

    int insertSelective(WorkAnswerRecord record);

    WorkAnswerRecord selectByPrimaryKey(Integer id);

    List<WorkAnswerRecord> selectByStuWorkId(Integer stuWorkId);

    WorkAnswerRecord selectByStuWorkIdAndQuestionId(@Param("stuWorkId") Integer stuWorkId,@Param("questionId") Integer questionId);

    int updateByPrimaryKeySelective(WorkAnswerRecord record);

    int updateByPrimaryKey(WorkAnswerRecord record);
}